package schema

import (
	"entgo.io/ent"
	"entgo.io/ent/schema/field"
)

// Order holds the schema definition for the Order entity.
type Order struct {
	ent.Schema
}

// Fields of the Order.
func (Order) Fields() []ent.Field {
	return []ent.Field{
		field.String("order_sn").
			Default("unknown"),
		field.String("mobile").
			Default("unknown"),
		field.String("uid").
			Default("unknown"),
		field.String("items").
			Default("video_member_card"),
		field.Float("money"),
		field.String("order_state").
			Default("unknown"),
		field.String("create_time").
			Default("unknown"),
	}
}

// Edges of the Order.
func (Order) Edges() []ent.Edge {
	return nil
}
